/**
 * Created by 6v on 2018/5/3.
 */
public class ShowDemoJava {

    private static String wert(){
        try{
            return "222222";
        }catch ( Exception e){
           throw e;
        }finally {
            System.out.println(0000000000);
        }
    }

    private  String wert2(){
        try{
            return "222222";
        }catch ( Exception e){
            throw e;
        }finally {
            System.out.println(0000000000);
        }
    }

    private static void  testSwitch(int length){
        switch (length) {
            case 3:
                System.out.println(3);
                break;
            case 2:
                System.out.println(2);
            case 1:
                System.out.println(1);
            default:
                break;
        }

    }



    public static void main(String[] args) {


        testSwitch(3);

//        System.out.println(wert());
//        System.out.println(new ShowDemoJava().wert2());
//        boolean b = true;
//        int a = b ? 1 : 0;
//        String answer, message = "yes";
//        int c = 0;
//        c ++;
//        int y =0;
//        //java中能多重赋值
//        int x = y = 1;
//        System.out.println(x +"==="+y);


//        String s ="1,,";
//        String[] sss = s.split(",");
//        System.out.println(sss.length);
    }
}
